//导入请求工具request.js
import request from '@/utils/request.js'

// 菜单列表查询
export const menuListService = () => {
    return request.get('/menu/list')
}

// 菜单添加
export const menuAddService = (menuData) => {
    return request.post('/menu', menuData)
}

// 菜单修改
export const menuUpdateService = (menuData) => {
    return request.put('/menu', menuData)
}

// 菜单删除
export const menuDeleteService = (id) => {
    return request.delete('/menu?id=' + id)
}